package com.usian.service;

import com.alibaba.druid.sql.ast.expr.SQLCaseExpr;
import com.usian.PageResult;
import com.usian.pojo.TbItem;
import com.usian.pojo.TbItemDesc;

import java.util.Map;

public interface ItemService {

    public TbItem findItemById(Long  id);

    PageResult selectTbItemAllByPage(Integer page, Integer rows);

    Integer insertTbitem(TbItem tbItem, String desc, String itemParams);

    Map<String, Object> preUpdateItem(Long itemId);

    Integer updateTbItem(TbItem tbItem, String desc, String itemParams);

    Integer deleteItemById(Long itemId);

    TbItemDesc selectItemDescByItemId(Long itemId);

    Integer updateTbItemByOrderId(String orderId);
}
